//
//  HZMBaseViewController.m
//  糖糖大魔王
//
//  Created by 韩震明 on 15/10/22.
//  Copyright © 2015年 韩震明. All rights reserved.
//

#import "HZMBaseViewController.h"


@interface HZMBaseViewController ()

@property(nonatomic, retain) MBProgressHUD *hud;

@end

@implementation HZMBaseViewController

- (void)dealloc
{
    [_hud release];
    [super dealloc];
}

- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self createNavigation];
    
}

#pragma mark Navigation Setting
- (void)createNavigation
{
    self.navigationController.navigationBar.barTintColor = [UIColor redColor];
    self.navigationItem.title = @"大魔王";
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
